package com.whc.gulimall.ware.feign;

import com.whc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author angaoen
 */
@FeignClient(name = "gulimall-order", path = "/order/order")
public interface OrderFeignService {

    /**
     * 通过orderSN获取订单状态
     *
     * @param orderSN orderSN
     * @return Integer
     */
    @GetMapping("/status")
    R getOrderStatusByOrderSN(@RequestParam("orderSN") String orderSN);
}
